<template>
  <el-descriptions class="margin-top" :column="2" border>
    <template slot="extra">
      <el-button type="primary" size="small" @click="resumeUpdata(resume.rid)">完善简历</el-button>
    </template>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-user"></i>
        姓名
      </template>
      {{resume.name}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-mobile-phone"></i>
        手机号
      </template>
      {{resume.phone}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-user-solid"></i>
        性别
      </template>
      {{resume.sex}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-suitcase"></i>
        邮箱
      </template>
      {{resume.email}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-date"></i>
        出生日期
      </template>
      {{resume.birthday}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-location-outline"></i>
        居住地
      </template>
      {{resume.area}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-coordinate"></i>
        职业方向
      </template>
      {{resume.expectIndustry}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-bank-card"></i>
        具体职业
      </template>
      {{resume.expectJob}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-sugar"></i>
        期望薪资
      </template>
      {{resume.expectSalary}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-location"></i>
        期望城市
      </template>
      {{resume.expectCity}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-bank-card"></i>
        个人总结
      </template>
      {{resume.summary}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-box"></i>
        工作经历
      </template>
      {{resume.experience}}
    </el-descriptions-item>
  </el-descriptions>
</template>
  <script>
export default {
  data() {
    return {
      resume: ""
    };
  },
  created() {
    const _this = this;
    let r = JSON.parse(window.localStorage.getItem("resume")); //获取父页面数据
    axios
      .get("http://localhost:8182/resume/findById/" + r.rid)
      .then(function(resp) {
        _this.resume = resp.data.data;
      });
  },
  methods: {
    resumeUpdata(id) {
      this.$router.push("/resumeUpdata?id=" + id);
    }
  }
};
</script>
  <style scoped>
</style>
  
